package cn.nubia.admin.application.bean;

import cn.nubia.admin.common.mybatis.annotations.Column;
import cn.nubia.admin.common.mybatis.annotations.Id;
import cn.nubia.admin.common.mybatis.annotations.Table;

import java.io.Serializable;

/**
 * Created by justin on 15/6/29.
 * CREATE TABLE `nb_soft_comment` (
 `comment_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评论id',
 `content` varchar(300) DEFAULT NULL COMMENT '评论内容',
 `stars` float DEFAULT NULL COMMENT '评论星级（从0.5、1到5星共10个等级）',
 `create_time` int(11) DEFAULT NULL COMMENT '评论时间',
 `state` smallint(6) DEFAULT NULL COMMENT '评论状态(-1删除 0-隐藏 1-显示)',
 `client_ip` varchar(20) DEFAULT NULL COMMENT '客户端ip',
 `soft_id` int(11) DEFAULT NULL COMMENT '软件id',
 `soft_item_id` int(11) DEFAULT NULL COMMENT '软件版本id',
 `version_name` varchar(50) DEFAULT NULL COMMENT '软件版本号名称',
 `terminal_id` int(11) DEFAULT NULL COMMENT '展示端id',
 `user_id` int(11) DEFAULT NULL COMMENT '用户id',
 `user_nick` varchar(30) DEFAULT NULL COMMENT '用户昵称',
 `user_icon` varchar(200) DEFAULT NULL COMMENT '用户头像',
 `up` int(11) DEFAULT NULL COMMENT '顶数',
 `down` int(11) DEFAULT NULL COMMENT '踩数',
 PRIMARY KEY (`comment_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='软件评论';
 SET FOREIGN_KEY_CHECKS = 1;
 */
@Table(value = "nb_soft_comment")
public class SoftComment implements Serializable{

    private static final long serialVersionUID = -8244661101951482489L;
    public static final Integer STATE_DEL =  -1;
    public static final Integer STATE_HIDDEN =  0;
    @Id(value = "comment_id")
    private Integer commentId;//评论id
    @Column(value = "content")
    private String content;//评论内容
    @Column(value = "stars")
    private float stars;//评论星级（从0.5、1到5星共10个等级）
    @Column(value = "create_time")
    private Integer createTime;//评论时间
    @Column(value = "state")
    private Integer state;//评论状态(-1删除 0-隐藏 1-显示)
    @Column(value = "client_ip")
    private String clientIp;//客户端ip
    @Column(value = "soft_id")
    private Integer softId;//软件id
    @Column(value = "soft_item_id")
    private Integer softItemId;//软件版本id
    @Column(value = "version_name")
    private String versionName;//软件版本号名称
    @Column(value = "terminal_id")
    private Integer terminalId;//展示端id
    @Column(value = "user_id")
    private Integer userId;//用户id
    @Column(value = "user_nick")
    private String userNick;//用户昵称
    @Column(value = "user_icon")
    private String userIcon;//用户头像
    @Column(value = "up")
    private Integer up;//顶数
    @Column(value = "down")
    private Integer down;//踩数

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public float getStars() {
        return stars;
    }

    public void setStars(float stars) {
        this.stars = stars;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public Integer getSoftId() {
        return softId;
    }

    public void setSoftId(Integer softId) {
        this.softId = softId;
    }

    public Integer getSoftItemId() {
        return softItemId;
    }

    public void setSoftItemId(Integer softItemId) {
        this.softItemId = softItemId;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public Integer getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(Integer terminalId) {
        this.terminalId = terminalId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public String getUserIcon() {
        return userIcon;
    }

    public void setUserIcon(String userIcon) {
        this.userIcon = userIcon;
    }

    public Integer getUp() {
        return up;
    }

    public void setUp(Integer up) {
        this.up = up;
    }

    public Integer getDown() {
        return down;
    }

    public void setDown(Integer down) {
        this.down = down;
    }
}
